import {
  get,
  post,
  put,
  del
} from '../utils/request.js'

//获取购物车数据
export const getCart = function(params) {
  return get('/customer/cart', params);
}
//添加购物车数据
export const addCart = function(params) {
  return post('/customer/cart', params)
}

//修改购物车数据
export const updateCart = function(params) {
  return put('/customer/cart', params)
}

//删除购物车数据
export const delCart = function(id) {
  return del('/customer/cart/' + `${id}`)
}
